home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-05-15 | 696 b | 24 lines | [TEXT/MPS ] |
- ;
- ; Patch.a
- ;
- ; Patch object layout.
- ;
-
- Patch RECORD 0 ; the field in braces is at offset 0.
- itsClassId DS.W 1 ; THINK's class id.
- itsNext DS.L 1 ; next patch after this one.
- itsBehavior DS.L 1 ; routine to call when patch hit.
- itsOld DS.L 1 ; old routine to call.
- itsStub DS.L 1 ; the stub glue code.
- itsGlobals DS.L 1 ; pointer to globals.
- itsInstalled DS.B 1 ; if patch is installed.
- itsState DS.B 1 ; state of patch (enabled/disabled).
- itsVTable DS.L 1 ; virtual fuction table here!
- ENDR
-
- PatchStub RECORD 0
- itsJsrJmp DS.W 1 ; jsr/jmp instruction.
- itsAddress DS.L 1 ; address to jsr/jmp to.
- itsPatch DS.L 1 ; instance of the patch.
- ENDR
-